export function setAvatar(key,val) {
  localStorage.setItem(key,val)
}

export function getAvatar(key) {
 return localStorage.getItem(key)
}

export function removeAvatar(key) {
  localStorage.removeItem(key)
}

// export function cloneDeep(obj) {
//   if (Array.isArray(obj)) {
//     return obj.map(cloneDeep)
//   } else if (typeof obj === 'object' && obj !== null) {
//     let target = {}
//     for (let key in obj) {
//       target[key] = cloneDeep(obj[key])
//     }
//     return target
//   } else {
//     return obj
//   }
// }
